﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

using System;
using System.Reflection;

public class Common

{
    public static bool isCanAttack(Entity bullet, Entity entity)
    {
        if (entity.type.Contains("stone"))
            return true;



        //盟军的不造成伤害,非盟军的子弹不造成伤害
        if (bullet.getKind() != entity.getKind() && (!entity.type.Contains("bullet")))
        {
            return true;
        }


        return false;

    }
}